package com.zzc.emotisenseclassroom.dao.user;

import com.zzc.baseRepository.componet.impl.TableFile;
import com.zzc.baseRepository.componet.interfaces.BaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.type.JdbcType;
import org.springframework.stereotype.Repository;

/**
 * Copyright Zzc
 * FileName: ClassDao
 * Author:   Zzc
 * Date:     2024/4/2718:10
 * Description:班级dao层
 * hISTORY:
 * <author>  <time>     <version>    <desc>
 * 作者姓名   修改时间       版本号       描述
 * Zzc                   1.0.0
 */
@Mapper
@Repository
public interface ClassDao extends BaseDao {
    /**
     * 学校id
     */
    TableFile SCHOOL_ID = new TableFile("school_id", "schoolId", "学校id" , JdbcType.BIGINT, Long.class, ClassDao.class);

    /**
     * 学校名称
     */
    TableFile SCHOOL_NAME = new TableFile("school_name", "schoolName", "学校名称" ,JdbcType.VARCHAR, String.class, ClassDao.class);

    /**
     * 班级id
     */
    TableFile CLASS_ID = new TableFile("class_id", "classId", "班级id" , JdbcType.BIGINT, Long.class, ClassDao.class);

    /**
     * 班级名称
     */
    TableFile CLASS_NAME = new TableFile("class_name", "className", "班级名称" ,JdbcType.VARCHAR, String.class, ClassDao.class);


    @Override
    default String getTableName() {
        return "z_class_info";
    }


}
